//
//  BaseViewController.h
//  Douyin
//
//  Created by Qiao Shi on 2018/7/30.
//  Copyright © 2018年 Qiao Shi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIViewController+CurrentVC.h"
#import "BaseViewModel.h"

@interface BaseViewController : UIViewController

@property (nonatomic, strong)BaseViewModel *viewModel;

@property (nonatomic, strong)NSDictionary *parameters;


- (void) initNavigationBarTransparent;

- (void) setBackgroundColor:(UIColor *)color;

- (void) setTranslucentCover;

- (void) initLeftBarButton:(NSString *)imageName;

- (void) setStatusBarHidden:(BOOL) hidden;

- (void) setStatusBarBackgroundColor:(UIColor *)color;

- (void) setNavigationBarTitle:(NSString *)title;

- (void) setNavigationBarTitleColor:(UIColor *)color;

- (void) setNavigationBarBackgroundColor:(UIColor *)color;

- (void) setNavigationBarBackgroundImage:(UIImage *)image;

- (void) setStatusBarStyle:(UIStatusBarStyle)style;

- (void) setNavigationBarShadowImage:(UIImage *)image;

- (void) back;

- (void) setLeftButton:(NSString *)imageName;

- (void) setBackgroundImage:(NSString *)imageName;

//初始化配置
-(void)navBaseConfig;

-(void)initNavigationBarTransparent;

- (CGFloat) navagationBarHeight;




/*
 //添加中心按钮的回调
 @property(nonatomic,copy)void(^clickBlock)(void);

 //搜索的block
 @property(nonatomic,copy)void(^searchBlock)(void);

 @property (nonatomic,copy)void(^textEditBlock)(NSString *editText);
 
 //创建主色调背景
 -(void)addNavBack;

 -(void)addCenterButtonwithSize:(CGSize)size andCenter:(CGPoint)center WithComplete:(void(^)(void))completeBlock;

 //添加搜索框
 -(void)addSearchBarWithComplete:(void(^)(void))completeBlock;
 //可编辑的搜索框
 -(void)addSearchViewForEditwithEditBlock:(void(^)(NSString *editString))EditBlock;

 */
@end
